/**
 * @Author MDD
 * @Description
 * @Version
 * @Date
 **/
public class Teacher {
    private String name;
    private String author;
    private String press;
    private int peice;


    public Teacher(String name, String author, String press, int peice) {
        this.name = name;//这样是给getName 赋值
        setAuthor(author);
        setPress(press);
        setPeice(peice);
    }

    public String getName() {//只读属性
        return this.name;
    }


    public String getAuthor() {
        return this.author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPress() {
        return this.press;
    }

    public void setPress(String press) {
        this.press = press;
    }

    public int getPeice() {
        return this.peice;
    }

    public void setPeice(int peice) {
        this.peice = peice;
    }

    public void outPut() {
        System.out.println("名字：" + this.name);
    }


    public static void main(String[] args) {
        Teacher teach = new Teacher("课工场", "who", "no", 0);
        teach.outPut();
    }
}


